SOURCES	= dbm.c queue.c
OBJS	= $(patsubst %.c, %.o, $(SOURCES))

SHARE_LIB	= libdbmem.so

.PHONY: dbm

all: dbm
dbm: $(SHARE_LIB)

$(SHARE_LIB): $(OBJS)
	gcc -fPIC $^ -shared -o libdbmem.so
#	echo $(OBJS)

%.o:%.c
	gcc -c $<
